package com.fzfnn.scrapbook.mapper;

import com.fzfnn.scrapbook.entity.LoginLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface LoginLogMapper {

    @Insert("INSERT INTO login_log (user_id, email, ip_address, login_address, login_time, message) " +
            "VALUES (#{userId}, #{email}, #{ipAddress}, #{loginAddress}, #{loginTime}, #{message})")
    int insertLog(LoginLog log);
}
